package com.xigua.chapter_3_template.example;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2022/3/2922:30
 */
public class CharDisplay extends AbstractDisplay {

    private Character ch;

    public CharDisplay( Character ch1) {
        this.ch = ch1;
    }

    public void open() {
        System.out.print("<<");
    }

    public void print() {
        System.out.print(ch);
    }

    public void close() {
        System.out.println(">>");
    }
}
